<h1 align="center">libri restiuiti </h1>
<?php 

	
	 	
	$query_Recordset1riclibri = "select idMLU,titolo, depositati.prezzo from depositati join libri using(idlibro) where Idcliente=$idc and idmlu not in (select idmlu from carrelli) and datares>0";
	$Recordset1riclibri = mysql_query($query_Recordset1riclibri, $mlu) or die(mysql_error());
	$row_Recordset1 = mysql_fetch_assoc($Recordset1riclibri);
	$total=mysql_num_rows($Recordset1riclibri);
	?>
<table border="1" align="center" class="tabellalibri">
  <tr>
    <td>ID</td>
    <td>titolo</td>
    <td>prezzo</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_Recordset1['idMLU']; ?>&nbsp; </td>
      <td><?php echo $row_Recordset1['titolo']; ?>&nbsp; </td>
      <td><?php echo $row_Recordset1['prezzo']; ?>&nbsp; </td>
    </tr>
    <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1riclibri)); ?>
</table>
<p> Totale libri restituiti: <?php echo $total; ?></p>
